/**
 * java代码练习2
 */
public class Test {
    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        int i = 100;
        String s1 = Integer.toString(i);
        String s2 = i + "";
        System.out.println(Integer.toString(i));
        System.out.println(Integer.valueOf(i));

        String s = "1234";
        int i1 = Integer.parseInt(s);
        System.out.println(i1);
    }
    public static void main1(String[] args) {
        int num = 10;
        System.out.println(num);
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        float f = 2.5f;
        System.out.println(f);
        System.out.println(Float.MAX_VALUE);
        System.out.println(Float.MIN_VALUE);

        double d = 5.7;
        System.out.println(d);
        System.out.println(Double.MAX_VALUE);
        System.out.println(Double.MIN_VALUE);

        long l = 100;
        System.out.println(l);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);

        byte b = 5;
        System.out.println(b);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);

        short s = 20;
        System.out.println(s);
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);

        char c = '高';
        System.out.println(c);
        System.out.println(Character.MAX_VALUE);
        System.out.println(Character.MIN_VALUE);
    }
}